package com.openingedu.mba.entity;

public class QuestionOptionVO {
	private Integer id;
	private String optionContent;
	private Short optionCorrect;
	/** 是否选择了当前选项 **/
	private boolean checked;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOptionContent() {
		return optionContent;
	}

	public void setOptionContent(String optionContent) {
		this.optionContent = optionContent;
	}

	public Short getOptionCorrect() {
		return optionCorrect;
	}

	public void setOptionCorrect(Short optionCorrect) {
		this.optionCorrect = optionCorrect;
	}
	

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	@Override
	public String toString() {
		return "QuestionOption [id=" + id + ", optionContent=" + optionContent
				+ ", optionCorrect=" + optionCorrect + "]";
	}

	public boolean isCorrect() {
		return this.optionCorrect == 1;
	}

}
